var app = getApp();
var ajax = require('../../utils/ajax.js');
var util = require('../../utils/util.js');
var common = require('../../utils/common.js');
var search = require('../../components/cInfoSearch/cInfoSearch.js');
var MPage = require('../MPage.js');

Page(common.extendPage(MPage, {
    data: {
        dataLoaded: false,
        list:[]
    },

    onLoad: function(options) {
        var _self = this;
        this._getCateList();
    },
    /**
     * 获取tab列表
     */
    _getCateList: function() {
        var url = "/openapi/CInformation/cateList";
        var _self = this;
        ajax.P(url, {}, function(data) {
            var data = data.result;
            _self.setData({
                list: data.list,
                dataLoaded:true
            })
        })
    },
    /**
    * 页面跳转
    */
    _jump(evt){
        common.jump(evt);
    }
}))